package cn.hdu.liang.core.service.product;

import java.util.List;

import cn.itcast.common.page.Pagination;
import cn.hdu.liang.core.bean.product.Type;
import cn.hdu.liang.core.query.product.TypeQuery;

public interface TypeService {

    public Integer addType(Type type);

    public Type getTypeByKey(Integer id);

    public List<Type> getTypesByKeys(List<Integer> idList);

    public Integer deleteByKey(Integer id);

    public Integer deleteByKeys(List<Integer> idList);

    public Integer updateTypeByKey(Type type);

    public Pagination getTypeListWithPage(TypeQuery typeQuery);

    public List<Type> getTypeList(TypeQuery typeQuery);
}
